package org.dromara.datacheck.domain.bo.jd;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.datacheck.domain.jd.JdSaleOutWarehouseOrder;

import java.util.Date;
import java.util.List;

/**
 * 金蝶-销售出库单业务对象 jd_sale_out_warehouse_order
 *
 * @author 刘武贵
 * @date 2024-09-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = JdSaleOutWarehouseOrder.class, reverseConvertGenerate = false)
public class JdSaleOutWarehouseOrderBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 日期
     */
//    @NotBlank(message = "日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String saleOutWarehouseOrderDate;

    /**
     * 单据编号
     */
//    @NotBlank(message = "单据编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String saleOutWarehouseOrderNumber;

    /**
     * 客户
     */
//    @NotBlank(message = "客户不能为空", groups = { AddGroup.class, EditGroup.class })
    private String saleOutWarehouseOrderCustomer;

    /**
     * 发货组织
     */
//    @NotBlank(message = "发货组织不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deliverGoodsOrganization;

    /**
     * 单据状态（0 重新审核，1 暂存，2 已审核， 3 审核中，4 新建）
     */
//    @NotBlank(message = "单据状态（0 重新审核，1 暂存，2 已审核， 3 审核中，4 新建）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String saleOutWarehouseOrderStatus;

    /**
     * 物料编码
     */
//    @NotBlank(message = "物料编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String materialCode;

    /**
     * 物料名称
     */
//    @NotBlank(message = "物料名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String materialName;

    /**
     * 库存单位名称
     */
//    @NotBlank(message = "库存单位名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String inventoryUnitName;

    /**
     * 实发数量
     */
//    @NotNull(message = "实发数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long actualDeliveryNumber;

    /**
     * 仓库名称
     */
//    @NotBlank(message = "仓库名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String warehouseName;

    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String saleOutWarehouseOrderRemark;

    /**
     * 客户集合
     */
//    @NotBlank(message = "客户不能为空", groups = { AddGroup.class, EditGroup.class })
    private List<String> saleOutWarhouseOrderCustomerList;

    /**
     * 单据日期（用于搜索）
     */
    @NotNull(message = "单据日期（用于搜索）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date newOrderDate;

}
